<include file="Public:header"/>

<div class="table-tit">销售编码编辑</div>

<link rel="stylesheet" href="__PUBLIC__/Anal/css/bootstrap-datetimepicker.css">
<script src="__PUBLIC__/Anal/js/bootstrap-datetimepicker.js"></script>
<script src="__PUBLIC__/Anal/js/locales/bootstrap-datetimepicker.zh-CN.js"></script>

<div class="form-panel">
    <div class="row">
        <div class="col-md-5">

            <form action="{:U('Curd/editons','type=Disisbn&str=dis_id&id='.$data['dis_id'])}" method="post">
                <div class="form-group">
                    <label>推广类型</label>
                    <select name="dis_custype" class="form-control input-sm">
                        <option value="0">请选择</option>
                        <volist name="sal" id="v">
                            <option value="{$v.sat_para}" <if condition="$v['sat_para'] eq $data['dis_custype']">selected</if> >{$v.sat_name}</option>
                        </volist>
                    </select>
                </div>
                <div class="form-group">
                    <label>销售方案</label>
                    <select name="dis_preid" class="form-control input-sm">
                        <option value="0">请选择</option>
                        <volist name="pre" id="v">
                            <option value="{$v.pre_id}" <if condition="$v['pre_id'] eq $data['dis_preid']">selected</if> >{$v.pre_name}</option>
                        </volist>
                    </select>
                </div>
                <div class="form-group">
                    <label>开始日期</label>
                    <input type="text" name="dis_timecode" class="form-control input-sm form_date" data-date-format="yymmdd" value="{$data.dis_timecode}">
                </div>
                <div class="form-group">
                    <label>合约序号</label>
                    <input type="text" name="dis_sn" class="form-control input-sm" value="{$data.dis_sn}">
                </div>
                <div class="form-group">
                    <label>截止日期</label>
                    <input type="text" name="dis_endtimecode" class="form-control input-sm form_date" data-date-format="ddmmyy" value="{$data.dis_endtimecode}">
                </div>
                <div class="form-group">
                    <label>限制码</label>
                    <select name="dis_limitcode" class="form-control input-sm">
                        <option value="0">请选择</option>
                        <option value="1" <if condition="$data.dis_limitcode eq 1">selected</if>>Y</option>
                        <option value="2" <if condition="$data.dis_limitcode eq 2">selected</if>>N</option>
                    </select>
                </div>
                <div class="form-group">
                    <label>备注</label>
                    <input type="text" name="dis_tag" class="form-control input-sm">
                </div>
                <button type="submit" class="btn btn-default">更新</button>
            </form>

        </div>
    </div>
</div>

<script>
    $('.form_date').datetimepicker({
        language: 'zh-CN',
        weekStart: 1,
        todayBtn: 1,
        autoclose: 1,
        todayHighlight: 1,
        startView: 2,
        minView: 2,
        forceParse: 0
    });
</script>
<include file="Public:footer"/>